Repository navigation
test(id): schedule fire joiner-visibility + ceiling proving tests (#5239, #796 item 10-2) - #5298
Conversation
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 15 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
…production bugs) First full run of the new tests (previous holder was cut off while compiling) failed both, and both failures are in the tests: (1) a_schedule_fire_never_reaches_joiners_via_events_after scanned the whole EventPage Debug for the schedule id nap, but nap is a substring of the field name needs_snapshot — the page itself was correct (only the participant Input event, fire filtered by project_event_for). Renamed the id to siesta and scan only page.events. (2) a_schedule_outside_the_ceiling_is_refused_and_pends_nothing asserted is_granted (allowed-and-granted, false under a ceiling by design) instead of the kept granted set, and expected cap_denied where the ledger refusal is outside_ceiling, which the actor returns verbatim. Both assertions corrected; the behaviors they prove (fire filtered from joiners; ceiling refusal pends nothing and counts a denial) hold in production code. Verified: cargo test -p id --lib schedule_tests — 21/21 pass.
|
Codex Review: Didn't find any major issues. Hooray! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Fixes #5239
Item 10-2 of the #796 phase-9/10 verification-debt inventory: schedule fire visibility + ceiling. Test-only; no production code changed.
Gap analysis (verified at origin/main
707689e32)Assertion 1 — a schedule fire never reaches joiners (
events_after): GAP (schedule-specific).Generic host-
Systemfiltering is already proven (project_event_fordropsSystemevents; an existing test asserts a retained host event is filtered fromevents_after/snapshot), and the program-side delivery is proven (a_due_schedule_fires_once_and_the_program_receives_it). But nothing pinned the actual schedule-fired payload (schedule_fired_event) against a joiner's catch-up page. Added:a_schedule_fire_never_reaches_joiners_via_events_after— a retained schedule-firedSystemevent plus a positive-control participantInputevent; the joiner'sevents_afterpage carries only the input, and the fire payload string never appears.Assertion 2 —
schedule.atrefused outside a set ceiling: GAP (schedule-specific).Horizon refusal is already proven (
schedule_bounds_refuse_each_violation_with_a_reason;refused_schedule_requests_pend_nothing), and ceiling refusal is proven for other caps (a_ceiling_change_denies_a_use_that_a_prior_grant_allowed,chat.say;caps_ceiling_is_admin_only_and_applies_at_once,time.now). But no schedule test set a ceiling. Added:a_schedule_outside_the_ceiling_is_refused_and_pends_nothing—schedule.atgranted, ceiling set to["time.now"]viaSetCapsCeiling; the grant is kept but excluded from the effective set, the request returnscap_denied, the denial is counted in ledger usage, and nothing pends or journals aScheduleSet.Both tests live in
pkgs/id/src/world/tests.rs(schedule_tests). Targeted tests pass in CI (this PR's checks).Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.